from flask import Flask
from werkzeug import datastructures


server = Flask("app")



@server.route('/')
def index():
     return'<h1>只要你开心，无论和谁，无论在哪！<h1>'

     
@server.route('/info')
def info():
     # 读取文件
     file = open('info.json','r',encoding='utf-8')
     data = file.read()
     file.close()

     return data

server.run('127.0.0.1',port=8080)